package com.hzw.saas.api.product.dto;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.util.constants.PatternConsts;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author zzl
 * @since 09/07/2021
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("产品许可信息(含即时过期时间)")
public class LicenseProductExpireBO extends LicenseProductBO{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "产品使用截止日期，由产品有效期与当前时间换算而来，pattern="+ PatternConsts.NORM_DATE_PATTERN)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date validatedExpiredDate;

}
